<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commonjsp/jstl.jsp"%>
<!-- 这里直接使用JSLT标记，后续改用自定义的标签 -->
<div class="span3" style="width: 14%">
	<div class="sidebar-nav">
		<c:if test="${admin.adminLevel == 1 || admin.adminLevel == 2 || admin.adminLevel == 3 }">
		<div class="nav-header" data-toggle="collapse" data-target="#configaccounts-menu">
			<i class="icon-briefcase"></i>
			配置管理
			<!-- span class="label label-info">+10</span -->
		</div>
		<ul id="configaccounts-menu" class="nav nav-list collapse in">
			<c:if test="${admin.adminLevel == 1}">
			<li><a href="${prefix}/company/preCompanyList">公司与店面</a></li>
			</c:if>
			<c:if test="${admin.adminLevel == 1 || admin.adminLevel == 2 || admin.adminLevel == 3 }">
			<li><a href="${prefix}/storeuser/preStoreUserList">店面服务员</a></li>
			</c:if>
			<c:if test="${admin.adminLevel == 1 || admin.adminLevel == 2 }">
			<li><a href="${prefix}/storeuser/preStoreUserGroupList">店面用户组</a></li>
			</c:if>
			<c:if test="${admin.adminLevel == 1 || admin.adminLevel == 2 || admin.adminLevel == 3 }">
			<li><a href="${prefix}/adminuser/adminuserList">后台用户</a></li>
			</c:if>
			<c:if test="${admin.adminLevel == 1 || admin.adminLevel == 2}">
			<li><a href="${prefix}/commodity/perCommodityList">商品码单</a></li>
			</c:if>
		</ul>
		</c:if>
		
		<div class="nav-header" data-toggle="collapse" data-target="#order-menu">
			<i class="icon-briefcase"></i>
			工单管理
		</div>
		<ul id="order-menu" class="nav nav-list collapse in">
			<c:if test="${admin.adminLevel == 3}">
			<li><a href="${prefix}/order/perCreateOrder">创建工单</a></li>
			</c:if>
			<c:if test="${admin.adminLevel == 3 || admin.adminLevel == 4}">
			<li><a href="${prefix}/order/perPickingOrder">工单配货</a></li>
			</c:if>
			<c:if test="${admin.adminLevel == 3}">
			<li><a href="${prefix}/order/perTaskOrder">待办工单</a></li>
			</c:if>
			<c:if test="${admin.adminLevel == 3}">
			<li><a href="${prefix}/order/perAccountOrder">消费单核算</a></li>
			</c:if>
			<c:if test="${admin.adminLevel == 1 || admin.adminLevel == 2}">
			<li><a href="${prefix}/ordertype/preOrderTypeList">工单类型</a></li>
			</c:if>
		</ul>
		
		<c:if test="${admin.adminLevel == 3}">
		<div class="nav-header" data-toggle="collapse" data-target="#useraccounts-menu">
			<i class="icon-briefcase"></i>
			评价管理
		</div>
		<ul id="useraccounts-menu" class="nav nav-list collapse in">
			<c:if test="${admin.adminLevel == 3}">
			<li><a href="javascript:void(0);">投诉管理</a></li>
			</c:if>
		</ul>
		</c:if>
		
		<c:if test="${admin.adminLevel == 1 || admin.adminLevel == 2 || admin.adminLevel == 3 }">
		<div class="nav-header" data-toggle="collapse" data-target="#report-menu">
			<i class="icon-briefcase"></i>
			报表管理
		</div>
		<ul id="report-menu" class="nav nav-list collapse in">
			<c:if test="${admin.adminLevel == 1 || admin.adminLevel == 2 || admin.adminLevel == 3 }">
			<li><a href="${prefix}/report/perReportOrderInfoByStorefront">店面级报表</a></li>
			</c:if>
			<c:if test="${admin.adminLevel == 1 || admin.adminLevel == 2}">
			<li><a href="${prefix}/report/perReportOrderInfoByCompany">公司级报表</a></li>
			</c:if>
		</ul>
		</c:if>
	</div>
</div>